<script setup>
import { useCounterStore } from '@/store/counter';
const counter = useCounterStore()
</script>

<template>
 <div>
  son2-{{ counter.count }}
  <button @click="counter.addCount(5)">+</button>
 </div>
</template>

<style scoped>
</style>
